package com.terry.trace.test.controller;

import com.terry.trace.core.TraceLogger;
import com.terry.trace.plugin.LogAround;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogController {

    private static final TraceLogger LOGGER = TraceLogger.getLogger(LogController.class);

    @LogAround
    @RequestMapping("say")
    public String say(String name) {
        LOGGER.info("say name = [{}]", name);
        return "success";
    }
}
